import { BaseTree } from "@/api/model/baseModel";

export type MenuModel = BaseTree & {
  icon?: string;
  hidden?: boolean;
  routerName?: string;
  routerPath?: string;
  filePath?: string;
  roles?: string;
  permissions?: string;
  children?: MenuModel[] | null;
};

export type MenuRouter = {
  name: string;
  path: string;
  component?: string;
  meta: RouterMeta;
  children: MenuRouter[];
};

export type RouterMeta = {
  icon: string;
  title: string;
  roles?: string[];
  permissions?: string[];
};
